import 'package:get/get.dart';

import '../api/login.api.dart';
import '../models/login.model.dart';

class LoginController extends GetxController {
  final count = 0.obs;

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

  void increment() => count.value++;

  login() async {
    var form =
        LoginForm(userName: "xiaobaozi", passWord: "123456", loginType: "1");
    var res = await LoginApi.login(form);
    print(res);
  }
}
